<meta charset="UTF-8">
<?php
   //连数据库 
mysql_connect("localhost","root","1161105403");
mysql_select_db("neuvideo");
mysql_query("set names utf8");

	$sql="select * from videotype";
	$rs=mysql_query($sql)or die('查询1失败！'.mysql_error());   
?>
<ul class="nav navbar-nav" style="align-content: center;">
        <li><a href="/final_project/foreground_system/lite/index.php">首页</a></li>
				<?php
					while($row=mysql_fetch_assoc($rs))
					{
				?>
				 <li><a href="list.php?tid=<?php
                echo $row["tid"];
                ?>
                "><?php
                echo $row["typename"];
                ?>
                </a></li>
                <?php
					}
                ?>
          </ul>
        </li>
      </ul>
<form   action="search.php"class="navbar-form navbar-left" role="search" >
<div class="form-group">
   <input type="text" class="form-control"  name="videoname" placeholder="Search">
  </div>
 <button type="submit" class="btn btn-default" style="color: red;">搜索</button>
</form>
